﻿
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/boetv/worptlist" method="post">
        <div class="bjui-searchBar">
            <label>WoId：</label>
            <input name="woId" value="${woId}"/>
            <g:hiddenField name="SYS_QUERY_NAME" value="worptList" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <button type="submit" class="btn-default" data-icon="search">Query</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/boetv/exportExcel')" data-icon="file-excel-o" title="导出Excel">Excel</button>&nbsp;

        </div>
    </form>
</div>
<div class="bjui-pageContent">
    %{--<a  class="btn btn-green"  data-toggle="dialog"--}%
        %{--data-url="${request.getContextPath()}/boetv/updateworpt"--}%
        %{--data-title="新增">新增</a>--}%
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="80">WoId</th>
                <th width="80">PartName</th>
                <th width="120">ProcessName</th>
                <th width="80">WoIdState</th>

                <th width="80">WoIdQty</th>
                <th width="80">InputQty</th>
                <th width="80">WipQty</th>
                <th width="120">CompleteQty</th>
                <th width="80">ScrapQty</th>

                <th width="80">StartRatio</th>
                <th width="80">WipRatio</th>
                <th width="120">CompleteRatio</th>
                <th width="80">ScrapRatio</th>

                %{--<th width="110">最后操作人</th>--}%
                %{--<th width="110">最后操作时间</th>--}%
                %{--<th width="150">操作</th>--}%
            </tr>
            </thead>
            <tbody>
            <g:each in="${worptList}" status="i" var="wipTrendInstance">
                <tr>
                    <td>${wipTrendInstance.WO_ID}</td>
                    <td>${wipTrendInstance.PART_NAME}</td>
                    <td>${wipTrendInstance.PROCESS_NAME}</td>
                    <td>${wipTrendInstance.WO_STATUS}</td>

                    <td>${wipTrendInstance.WO_QTY}</td>
                    <td>${wipTrendInstance.IN_QTY}</td>
                    <td>${wipTrendInstance.WIP_QTY}</td>
                    <td>${wipTrendInstance.OUT_QTY}</td>
                    <td>${wipTrendInstance.DEFECT_QTY}</td>
                    %{--<td>${wipTrendInstance.ONE_OK_QTY}</td>--}%

                    <td>${wipTrendInstance.IN_YIELD}</td>
                    <td>${wipTrendInstance.WIP_YIELD}</td>
                    <td>${wipTrendInstance.OUT_YIELD}</td>
                    <td>${wipTrendInstance.DEFECT_YIELD}</td>
                    %{--<td>${wipTrendInstance.ONE_OK_YIELD}</td>--}%





                    %{--<td>${wipTrendInstance.LM_USER}</td>--}%
                    %{--<td>${wipTrendInstance.LAST_UPDATED}</td>--}%
                    %{--<td>--}%

                        %{--<a  class="btn btn-green"  data-toggle="dialog"--}%
                            %{--data-url="${request.getContextPath()}/boetv/updateworpt?id=${wipTrendInstance.ID}"--}%
                            %{--data-title="编辑">编辑</a>--}%
                        %{--<a  class="btn btn-red"   data-confirm-msg="确定要删除该行信息吗？"--}%
                            %{--data-toggle="doajax"  data-type="DELETE"--}%
                            %{--data-callback=function(){$.CurrentNavtab.navtab('refresh')}--}%
                            %{--href="${request.getContextPath()}/boetv/deleteworpt?id=${wipTrendInstance.ID}"--}%
                        %{-->删除</a>--}%
                    %{--</td>--}%
                </tr>
            </g:each>
            </tbody>
        </table>

</div>


<script type="text/javascript">
    $(function () {
        $.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({
            format:'yyyy-mm-dd hh',
            autoclose: true,
            todayBtn: true,
            startView:1,
            minView:1,
            pickerPosition: "bottom-left",
            language:'zh-CN',
            startDate:'2016-01-01'
        });

        $.CurrentNavtab.find('.selectpicker').selectpicker();
    })
</script>